<?php
echo '<br /><br />';
echo 'Add Catagory Sub';
echo '<br /><br />';
echo $error;

echo form_open_multipart('addmincont/do_uploadcatsub');
	echo "<table><tr>";
		echo "<td>";
			echo "CategorySub Name : ";
		echo "</td>";
		echo "<td>";
			echo '<input type = "text" name = "catename" id = "catename" value="" size="30"/>';
		echo "</td></tr>";
		
		echo "<tr><td>";
			echo "CategorySub Code : ";
		echo "</td>";
		echo "<td>";
			echo '<input type = "text" name = "catecode" id = "catecode" value="" size="30"/>';
		echo "</td></tr>";
		
		echo "<td>";
			echo "CategorySub sort : ";
		echo "</td>";
		echo "<td>";
			echo '<input type = "text" name = "catesort" id = "catesort" value="" size="30"/>';
		echo "</td></tr>";
		
		echo "<tr><td>";
			echo "Category Type : ";
		echo "</td>";
		echo "<td>";
			echo '<select name = "typep" id = "typep" />';
			echo '<option value="">Categories Type</option>';
			$couttype = count($catetype);
			for($i=0;$i<$couttype;$i++){
				echo '<option value="'.$catetype[$i]['cat_type_id'].'">'.$catetype[$i]['cat_type_name'].'</option>';
			}
		echo "</td></tr>";
		
		echo "<tr><td>";
			echo "Product Images : ";
		echo "</td>";
		echo "<td>";
			echo '<input type="file" name="userfile" id = "userfile" size="30" />';
		echo "</td></tr>";
		
		echo "<tr><td colspan='2'>";
			
			echo '<input type="submit" value="Add" />';
		echo "</td>";
echo '</tr></table></form>';